(x_calc_absolute_position): Add BLOCK_INPUT around
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 19 May 2007 05:07:40 +0000 (05:07 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 19 May 2007 05:07:40 +0000 (05:07 +0000)
mac_get_window_bounds.

src/macterm.c

index 1acb521f47be75f8c69f589b63b95f97d51669bf..9c1a151f4a92f1af4de643801059e47553feddbe 100644 (file)
@@ -6084,7 +6084,9 @@ x_calc_absolute_position (f)
 
   /* Find the offsets of the outside upper-left corner of
      the inner window, with respect to the outer window.  */
+  BLOCK_INPUT;
   mac_get_window_bounds (f, &inner, &outer);
+  UNBLOCK_INPUT;
 
   width_diff = (outer.right - outer.left) - (inner.right - inner.left);
   height_diff = (outer.bottom - outer.top) - (inner.bottom - inner.top);